//
//  ViewController.m
//  NinePatchDemo
//
//  Created by 李松芮 on 2018/9/6.
//  Copyright © 2018年 李松芮. All rights reserved.
//

#import "ViewController.h"
#import "UIImage+DYNinePatch.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *imageView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    UIImage *image = [UIImage imageNamed:@"bg_outdoor.9"];
    _imageView.image = [image resizableImage];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
    
}


@end
